public class Test {
    public static void main(String[] args) {
        System.out.println("====普通员工====");
        worker worker = new worker("jack",350,30,1.0);
        worker.print();
        System.out.println("====部门经理====");
        Departmental_staff employee = new Departmental_staff("smith",400,30,1.2);
        employee.setBonus(1000);
        employee.print();
        System.out.println(employee.getSal()) ;
    }
}
